﻿namespace Minotaur.App.Domains.Model.Unit
{
    /// <summary>
    /// 公司
    /// </summary>
    [SugarTable("UnitInfo")]
    public class UnitInfo : EntityBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(ColumnName = "autoid", IsIdentity = true, IsPrimaryKey = true)]
        public virtual long AutoId { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        [SugarColumn(ColumnName = "unitcode")]
        public virtual string? UnitCode { get; set; }

        /// <summary>
        /// 上级公司id
        /// </summary>
        [SugarColumn(ColumnName = "parentid")]
        public virtual long? ParentId { get; set; }

        /// <summary>
        /// 公司地址
        /// </summary>
        [SugarColumn(ColumnName = "unitaddress")]
        public virtual string? UnitAddress { get; set; }

        /// <summary>
        /// 法人
        /// </summary>
        [SugarColumn(ColumnName = "legal")]
        public virtual string? Legal { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [SugarColumn(ColumnName = "phone")]
        public virtual string? Phone { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [SugarColumn(ColumnName = "contact")]
        public virtual string? Contact { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        [SugarColumn(ColumnName = "enable")]
        public virtual bool? Enable { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        [SugarColumn(ColumnName = "level")]
        public virtual int? Level { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnName = "sequence")]
        public virtual long? Sequence { get; set; }
    }
}
